import request from '@/router/axios'


export function subBatch(obj) {
  return request({
    url: '/stm/swstcycleapply/submitBatch',
    method: 'put',
    data: obj
  })
}

export function appBatch(obj) {
  return request({
    url: '/stm/swstcycleapply/auditBatch',
    method: 'put',
    data: obj
  })
}

export function fetchList(query) {
  return request({
    url: '/stm/swstcycleapply/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/stm/swstcycleapply',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/stm/swstcycleapply/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/stm/swstcycleapply/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/stm/swstcycleapply',
    method: 'put',
    data: obj
  })
}
